home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / srchdlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  2.0 KB  |  53 lines

  1. //---------------------------------------------------------------------------
  2. // Borland C++Builder
  3. // Copyright (c) 1987, 1998 Borland International Inc.  All Rights Reserved.
  4. //---------------------------------------------------------------------------
  5. //---------------------------------------------------------------------------
  6. #ifndef srchdlgH
  7. #define srchdlgH
  8. //---------------------------------------------------------------------------
  9. #include <Classes.hpp>
  10. #include <Controls.hpp>
  11. #include <StdCtrls.hpp>
  12. #include <Forms.hpp>
  13. #include <Buttons.hpp>
  14. #include <DBGrids.hpp>
  15. #include <Grids.hpp>
  16. #include <DB.hpp>
  17. //---------------------------------------------------------------------------
  18. class TSearchDlg : public TForm
  19. {
  20. __published:    // IDE-managed Components
  21.     TLabel *Label1;               //
  22.     TLabel *Label2;               //
  23.     TComboBox *OrderCombo;        //
  24.     TEdit *SearchEd;              //
  25.     TSpeedButton *SearchButton;   //
  26.     TButton *OKBtn;               //
  27.     TButton *CancelBtn;           //
  28.     TDBGrid *DBGrid1;             //
  29.     TDataSource *DataSource;      //
  30.     void __fastcall DBGrid1DblClick(TObject *Sender);
  31.     void __fastcall SearchButtonClick(TObject *Sender);
  32.     void __fastcall OrderComboChange(TObject *Sender);
  33.     void __fastcall SearchEdKeyPress(TObject *Sender, char &Key);
  34.     void __fastcall SearchEdChange(TObject *Sender);
  35. private:    // User declarations
  36.     TField *SrchFld;
  37.     double GetCustNo();
  38.     void SetCustNo(double NewCustNo);
  39.     double GetPartNo();
  40.     void SetPartNo(double NewPartNo);
  41. public:        // User declarations
  42.     virtual __fastcall TSearchDlg(TComponent* Owner);
  43.     __property double PartNo={read=GetPartNo,write=SetPartNo};
  44.     __property double CustNo={read=GetCustNo,write=SetCustNo};
  45.     int ShowModalCust();
  46.     int ShowModalParts();
  47.  
  48. };
  49. //---------------------------------------------------------------------------
  50. extern TSearchDlg *SearchDlg;
  51. //---------------------------------------------------------------------------
  52. #endif
  53.